﻿namespace Acl.Messages;



/// <summary>
/// 分布式请求处理器
/// </summary>
public interface IDistributionRequestHandler<TRequestData, TResponse> : IDistributionMessageHandlerBase
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="request"></param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<TResponse> Handle(IDistributionRequest<TRequestData> request,CancellationToken? cancellationToken = default);
}
